/* 储存职位相关控件字段 */

import { IcomponentItem } from '../types';

// POSITON_
// positon
/* 储存组织相关属性 */
export const positonControl: IcomponentItem[] = [
  {
    componentName: '职位名称',
    code: 'POSITON_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '标准职位名称',
    code: 'POSITON_STAND_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonStandName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '职位编码',
    code: 'POSITON_CODE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonCode',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '标准职位编码',
    code: 'POSITON_STAND_CODE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonStandCode',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '职位类别',
    code: 'POSITON_TYPE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonType',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '职位层级',
    code: 'POSITON_LEVEL',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonLevel',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '是否特殊工种',
    code: 'POSITON_SPECIAL_PROFESSION',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonSpecialProfession',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '是否关键职位',
    code: 'POSITON_KEY_JOB',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonKeyJob',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '职位使命',
    code: 'POSITON_MISSION',
    componentType: 'TEXT_AREA',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonMission',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '职位所属部门',
    code: 'POSITON_DEPARTMENT',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonDepartment',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '关联职位',
    code: 'POSITON_RELATED',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonRelated',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '关联标准职位',
    code: 'POSITON_STAND_RELATED',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonStandRelated',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '选择职位说明书模板',
    code: 'POSITON_TEMPLATE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonTemplate',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '职位序列',
    code: 'POSITON_SEQUENCE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonSequence',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '职级范围',
    code: 'POSITON_RANGE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'positonRange',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '是否设为标准职位',
    code: 'POSITON_SET_STAND_POSITION',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'positionSetStandPosition',
    props: {}
  },
  {
    componentName: '入职时间',
    code: 'POSITON_ENTRY_DATE',
    componentType: 'DATE',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'positionEntryDate',
    props: {}
  }
];

/* 储存code */
export const positonControlField = [
  'POSITON_NAME',
  'POSITON_STAND_NAME',
  'POSITON_CODE',
  'POSITON_STAND_CODE',
  'POSITON_TYPE',
  'POSITON_LEVEL',
  'POSITON_SPECIAL_PROFESSION',
  'POSITON_KEY_JOB',
  'POSITON_MISSION',
  'POSITON_DEPARTMENT',
  'POSITON_RELATED',
  'POSITON_STAND_RELATED',
  'POSITON_TEMPLATE',
  'POSITON_SEQUENCE',
  'POSITON_RANGE',
  'POSITON_SET_STAND_POSITION',
  'POSITON_ENTRY_DATE'
];
